<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import {useStore} from 'vuex'

const store=useStore()
onLaunch(() => {
	uni.getStorage({
		key:'uinfo',
		success:(res)=>{
			console.log('提取本地存储',res);
			store.commit('user/init',res.data)
		}
	})
  console.log("App Launch");
});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});
</script>
<style>
@import 'colorui/icon.css';
@import 'colorui/animation.css';
@import 'colorui/main.css';

</style>
